package server.core;

import server.Lifecycle;
import server.LifecycleEvent;
import server.LifecycleListener;

public class SimpleContextLifecycleListener implements LifecycleListener {
    @Override
    public void lifecycleEvent(LifecycleEvent event) {
        System.out.println("SimpleContextLifecycleListener's event:" + event.getType());
        if (Lifecycle.START_EVENT.equals(event.getType())) {
            System.out.println("Starting context.");
        } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
            System.out.println("Stopping context.");
        }
    }
}
